#ifndef P2P_CLIENT_MAINGUI_H_
#define P2P_CLIENT_MAINGUI_H_

#include <ncurses.h>
#include <menu.h>
#include <panel.h>
#include <string.h>
#include <stdlib.h>
#include "proto.h"
#include "mySocket.h"

#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
#define CTRLD 	4
#define NLINES 10
#define NCOLS 40

struct Node
{
	PANEL *p;
	WINDOW *w;
	Node *pre, *nxt;
	char head[NCOLS];
	char body[NLINES][NCOLS];
	int st, ed, roll;
	char msg[NCOLS];
	int pos;
};

extern Node head, *top;

extern void addMessage(char *, bool);
extern void init_wins(char *uID);
extern void mainGUI(char *[], char *[], int);

#endif
